<?php if(isset($events) && !empty($events)){
	foreach ($events as $key => $e) {
?>
	<div class="events">
		<h3 class="events-name"><?php echo $this->Html->link($e['Event']['name'],array('controller'=>'events','action'=>'view',$e['Event']['id']))?></h3>
		<p class="events-samll-content"><?php echo $e['Event']['small_content']?></p>
		<div class="clr"></div>
		<div class="events-info  corners-4">
			<span class="autor">
				<?php echo $this->Html->link($this->Html->image(HOST.'/icon_user.png',array('title'=>$e['User']['first_name'].__(' Profile',true))),array('controller'=>'users','action'=>'view',$e['User']['id']),array('escape'=>false))?>
				<?php if($e['User']['skipper']) echo $this->Html->link($this->Html->image(HOST.'/icon_skipper.png',array('title'=>__(' Have Skipper License',true))),array('controller'=>'users','action'=>'view',$e['User']['id']),array('escape'=>false))?>
				<?php echo $this->Html->link($this->Html->image(HOST.'/icon_friend_add.png',array('title'=>__('Add As Friend',true))),array('controller'=>'friends','action'=>'add',$e['User']['id']),array('escape'=>false))?>
				<?php echo $this->Html->link($this->Html->image(HOST.'/icon_message_add.png',array('title'=>__('Create Message',true))),array('controller'=>'messages','action'=>'add',$e['User']['id']),array('escape'=>false))?>
				<?php echo $e['User']['first_name']?>
			</span>
			<span class="comments">
				<?php echo count($e['Post']).$this->Html->image(HOST.'/icon_comments.png',array('title'=>__('Comments total',true)))?>
				<?php echo $this->Html->link($this->Html->image(HOST.'/icon_comments_add.png',array('title'=>__('Add Comments',true))),array('controller'=>'events','action'=>'view',$e['Event']['id']),array('escape'=>false))?>
			</span>
			<span class="created">
				<?php echo $this->Html->link($this->Html->image(HOST.'/icon_join_event.png',array('title'=>__('Join to Event',true))),array('controller'=>'events','action'=>'join',$e['Event']['id']),array('escape'=>false))?>
				<?php echo $this->Html->image(HOST.'/icon_calendar.png',array('title'=>__('Created',true))).$e['Event']['created']?>
			</span>
			<div class="clr"></div>
		</div>
		
		<div class="clr"></div>
	</div>
	
<?php }}?>